|
AL SET LISTENER VELOCITY
This function will set the velocity of the listener in 3D space. Normally, the listener's velocity is its old position subtracted from its new position (newXYZ - oldXYZ = velocityXYZ). Using AL MOVE LISTENER TO to position it will automatically calculate the velocity for you. However, this command gives you control over the listener velocity which may be useful in certain situations (e.g. a ship going to warp or a drugged character), where you want the listener to appear as though it is moving faster/slower than it actually is.
AL SET LISTENER VELOCITY soundNumber, x, y, z
soundNumber
Integer
The sound number.
x
Float
The X velocity of the listener
y
Float
The Y velocity of the listener
z
Float
The Z velocity of the listener
This function does not return a value.
|